﻿#ifndef AUTOSAVE_H
#define AUTOSAVE_H

#include <QString>

class QObject;
class QSettings;
class Autosave
{
public:
    Autosave() = default;
    explicit Autosave(QObject *obj);
    ~Autosave();
    void initialize();
    // in out tree
    static void serialization(QObject *obj,QSettings *settings,QString parentName = "");
    static void deserialization(QObject *obj,QSettings *settings,QString parentName = "");
private:
    QObject *m_obj;
};

#endif // AUTOSAVE_H
